import os

from htmltestreport import HTMLTestReport
import unittest

from config import DIR_PATH

suite = unittest.defaultTestLoader.discover("./script")
report_path = DIR_PATH + os.sep + "report" +os.sep + "p2p.html"
HTMLTestReport(report_path, title="p2p接口自动化测试报告").run(suite)